package com.github.handler;

/**
 * 功能说明: 用来存储Excel标题的对象，通过该对象可以获取标题和方法的对应关系
 */
public class ExcelHeader implements Comparable<ExcelHeader> {
    /**
     * excel的标题名称
     */
    private String title;
    /**
     * 每一个标题的顺序
     */
    private int order;
    /**
     * 注解域
     */
    private String filed;
    /**
     * 属性类型
     */
    private Class<?> filedClazz;
    
    private int width;
    
    private boolean isNull;
    
    private String regFormat;
    
    private String callFiled;
    
    public String getCallFiled() {
		return callFiled;
	}

	public void setCallFiled(String callFiled) {
		this.callFiled = callFiled;
	}

	public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getFiled() {
        return filed;
    }

    public void setFiled(String filed) {
        this.filed = filed;
    }

    public Class<?> getFiledClazz() {
        return filedClazz;
    }

    public void setFiledClazz(Class<?> filedClazz) {
        this.filedClazz = filedClazz;
    }

    public int compareTo(ExcelHeader o) {
        return order - o.order;
    }
    
    public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}
	
	public boolean isNull() {
		return isNull;
	}

	public void setNull(boolean isNull) {
		this.isNull = isNull;
	}

	public String getRegFormat() {
		return regFormat;
	}

	public void setRegFormat(String regFormat) {
		this.regFormat = regFormat;
	}

	public ExcelHeader(String title, int order, String filed, Class<?> filedClazz, int width, boolean isNull,
			String regFormat,String callFiled) {
		super();
		this.title = title;
		this.order = order;
		this.filed = filed;
		this.filedClazz = filedClazz;
		this.width = width;
		this.isNull = isNull;
		this.regFormat = regFormat;
		this.callFiled = callFiled;
	}
	
	

}
